Integrand size = 23, antiderivative size = 36 \[ \int \frac {\tan (e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\frac {\text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} f} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3273, 65, 214} \[ \int \frac {\tan (e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\frac {\text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a+b}}\right )}{f \sqrt {a+b}} \]
[In]
[Out]
Rule 65
Rule 214
Rule 3273
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{(1-x) \sqrt {a+b x}} \, dx,x,\sin ^2(e+f x)\right )}{2 f} \\ & = \frac {\text {Subst}\left (\int \frac {1}{1+\frac {a}{b}-\frac {x^2}{b}} \, dx,x,\sqrt {a+b \sin ^2(e+f x)}\right )}{b f} \\ & = \frac {\text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} f} \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.06 \[ \int \frac {\tan (e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\frac {\text {arctanh}\left (\frac {\sqrt {a+b-b \cos ^2(e+f x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(102\) vs. \(2(30)=60\).
Time = 1.37 (sec) , antiderivative size = 103, normalized size of antiderivative = 2.86
method | result | size |
default | \(\frac {\ln \left (\frac {2 \sqrt {a +b}\, \sqrt {a +b -b \left (\cos ^{2}\left (f x +e \right )\right )}-2 b \sin \left (f x +e \right )+2 a}{1+\sin \left (f x +e \right )}\right )+\ln \left (\frac {2 \sqrt {a +b}\, \sqrt {a +b -b \left (\cos ^{2}\left (f x +e \right )\right )}+2 b \sin \left (f x +e \right )+2 a}{\sin \left (f x +e \right )-1}\right )}{2 \sqrt {a +b}\, f}\) | \(103\) |
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 112, normalized size of antiderivative = 3.11 \[ \int \frac {\tan (e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\left [\frac {\log \left (\frac {b \cos \left (f x + e\right )^{2} - 2 \, \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {a + b} - 2 \, a - 2 \, b}{\cos \left (f x + e\right )^{2}}\right )}{2 \, \sqrt {a + b} f}, -\frac {\sqrt {-a - b} \arctan \left (\frac {\sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {-a - b}}{a + b}\right )}{{\left (a + b\right )} f}\right ] \]
[In]
[Out]
\[ \int \frac {\tan (e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int \frac {\tan {\left (e + f x \right )}}{\sqrt {a + b \sin ^{2}{\left (e + f x \right )}}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 106 vs. \(2 (30) = 60\).
Time = 0.32 (sec) , antiderivative size = 106, normalized size of antiderivative = 2.94 \[ \int \frac {\tan (e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=-\frac {\frac {\operatorname {arsinh}\left (\frac {b \sin \left (f x + e\right )}{\sqrt {a b} {\left (\sin \left (f x + e\right ) + 1\right )}} - \frac {a}{\sqrt {a b} {\left (\sin \left (f x + e\right ) + 1\right )}}\right )}{\sqrt {a + b}} - \frac {\operatorname {arsinh}\left (-\frac {b \sin \left (f x + e\right )}{\sqrt {a b} {\left (\sin \left (f x + e\right ) - 1\right )}} - \frac {a}{\sqrt {a b} {\left (\sin \left (f x + e\right ) - 1\right )}}\right )}{\sqrt {a + b}}}{2 \, f} \]
[In]
[Out]
\[ \int \frac {\tan (e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int { \frac {\tan \left (f x + e\right )}{\sqrt {b \sin \left (f x + e\right )^{2} + a}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\tan (e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int \frac {\mathrm {tan}\left (e+f\,x\right )}{\sqrt {b\,{\sin \left (e+f\,x\right )}^2+a}} \,d x \]
[In]
[Out]